<?php

namespace app\index\model;

use think\Model;

class BidTaskModel extends Model
{

    protected $table = 'newzs_bid_task';

    protected $pk = 'id';

    public function bidTaskTemplate()
    {
        return $this->hasOne(BidTaskTemplateModel::class, 'id','templateid')->alias('task');
    }


    static public function get_level()
    {
        return [1,2,3];
    }

    static public function get_stage()
    {
        return [
            1 => '报名阶段',
            2 => '标书制作阶段',
            3 => '开标阶段'
        ];
    }

    static public function get_state()
    {
        return [
            1 => '进行中',
            2 => '未开始',
            3 => '完成',
            4 => '关闭'
        ];
    }

}

